package com.jingdianjichi.subject.convert;

import com.jingdianjichi.subject.entity.SubjectCategoryBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 董代恒
 * @version 1.0
 */
@Mapper
public interface SubjectCategoryConvert {

    SubjectCategoryConvert INSTANCE = Mappers.getMapper(SubjectCategoryConvert.class);

    /**
     * 将subjectCategoryBO实体类转成SubjectCategory
     * 编写方法名称时候同意规范采用谁转谁模式BOToEntity
     *
     * @param subjectCategoryBO
     * @return
     */
    SubjectCategory SubjectCategoryBOToSubjectCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> SubjectCategoryListToSubjectCategoryBOList(List<SubjectCategory> subjectCategoryList);
}
